package com.lds.config.center.client.common.enums;

import com.lds.management.center.common.enums.ErrCodeEnum;

public enum ClientErrorEnum implements ErrCodeEnum {
    ENV_NOT_EXIST("ENV_NOT_EXIST", "环境不存在"),
    CLUSTER_NOT_EXIST("CLUSTER_NOT_EXIST", "集群不存在"),
    APP_NOT_EXIST("APP_NOT_EXIST", "应用不存在"),
    NAMESPACE_NOT_EXIST("NAMESPACE_NOT_EXIST", "配置文件不存在"),
    ;

    private final String code;
    private final String message;

    ClientErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getErrCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return message;
    }

}
